import { config, request } from 'utils'

const { api } = config
const {
  rainfallCountUrl,
  pubdictValueListUrl
} = api


// Post,降水量统计
export async function rainfallCount(data) {
  return request(rainfallCountUrl, {
    method: 'POST',
    data: data,
  });
}

// POST，降水量高低标准水位值查询
export async function rainfallBaseLine(params) {
  return request(pubdictValueListUrl, {
    method: 'POST',
    data: {
      "dictKey":"rainfall"
    },
  });
}

// POST，名称查询
export async function hydrologyNamesQuery(params) {
  return request(pubdictValueListUrl, {
    method: 'POST',
    data: params,
  });
}

